// 不同状态对应的 功能点
export const updatedisabledStatus = (actionGroup,codesToDisable) => {
  const updatedContentButton = actionGroup.contentButton.map((item) => ({
    ...item,
    disabled: codesToDisable.includes(item.code) ? true : item.disabled,
  }));

  const updatedContentMenu = actionGroup.contentMenu.map((item) => ({
    ...item,
    disabled: codesToDisable.includes(item.code) ? true : item.disabled,
  }));

  return {
    contentButton: updatedContentButton,
    contentMenu: updatedContentMenu,
  };
};